{% extends "base.html" %}
{% block title %}知否/{{current.title}}{% endblock %}
{% block bodycontent %}
<div id="wrapper"> 
    <div id="room"> 
        <div id="CALeft"> 
<div class="headNormal">
<!-- current 代表当前问题 -->
    <h1><a href="/questions/2696/python">{{current.title}}</a></h1>
</div>
<div id="main-body" class="">
    <div id="askform">
            <table style="width:100%;" id="question-table" >
<tr>
                    <td>
                        <div id="item-right">
                            <div class="question-body">
                            <!-- 问题描述 -->
                                <p>{{current.description}}</p>
                            </div>
                            <div class='post-update-info post-update-info-edited'> 
        <p style="line-height:12px;"> 
            <a href="/revisions/2696/"> 
                edited
                <!-- 最后编辑的时间  -->
                <strong>{{current.question_datetime}}</strong> 
            </a> 
        </p> 
        
    </div>
                      </div>
  <!-- answer_container指该问题的答案集-->
         {% for part in answer_container %}               
                    <a name="2751"></a>

                    <div id="answer-container-2751" class="answer ">

                        <table style="width:100%;">

                            <tr>
                                <td>
                                    <div class="item-right">
                                        <div class="answer-body">
                                            <p>{{part.description}}</p>
                                        </div>

                                        <div class="answer-controls post-controls">  
                                        </div>
                                        <div class="post-update-info-container">
<div class='post-update-info post-update-info-user'> 
    <p style="line-height:12px;"> 
        answered
        <strong>{{part.answer_datetime}}</strong> 
    </p> 
    <img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/2843b1e49827c8a63ef3695778646263?s=32&amp;d=identicon&amp;r=g" alt="vincent's gravatar image" /> 
    <p><a href="/users/566/vincent/">{{part.answer.name}}</a><br/> 
    <span class="score" title="1 reputation points">1</span></p> 
</div> 
                                    </div>
<div class="comments-container" id="comments-container-2751">
</div>
<div id="comment-tools-2751" class="comment-tools">
</div>
<div id="comment-2751-form-container" class="comment-form-container">
</div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        {% endfor%}
                    </div>
                <div class="paginator-container-left">
                </div>
        <form id="fmanswer" action="/questions/2696/answer/" method="post"><div style='display:none;'><input type='hidden' id='csrfmiddlewaretoken' name='csrfmiddlewaretoken' value='41f0e10243e609bfc4edf0fc4c184238' /></div>
            <div style="clear:both">
            </div>  
                <div style="padding:10px 0 0 0;">
                    <div class="headNormal">
                            您的回答
                    </div>
                </div>
                    <div class="message">You can answer anonymously and then login.</div> 
                <div id="description" class="" >
                    <div id="wmd-button-bar" class="wmd-panel"></div>
                    <textarea rows="10" cols="40" name="text" id="editor"></textarea>
                    <div class="preview-toggle">
                        <table width="100%">
                            <tr>
                                <td>
                                    <span id="pre-collapse" 
                                        title="打开或者关闭Markdown编辑器的实时预览">
                                            预览开关
                                    </span>
                                </td>
                                <td style="text-align: right;" id="editor-metrics"></td>        
                                <td style="text-align:right;">
                                    <input type="checkbox" name="wiki" id="id_wiki" />                                  
                                    <span style="font-weight:normal;cursor:help" 
                                        title="选择社区wiki模式，问答不计算积分，签名也不显示作者信息">\
                                            <label for="id_wiki">社区Wiki</label> 
                                    </span>
                                </td>
                            </tr>
                        </table>  
                    </div>
                    <div id="previewer" class="wmd-preview"></div>
                </div>
                <p><span class="form-error"></span></p>
                <input type="button" value="回答问题"
                    class="submit" style="float:left" onclick="submitClicked(event, this.form)"/>
                 &nbsp;&nbsp;&nbsp;&nbsp;<span>请确保你的回答对别人是有帮助的，这里不欢迎无意义的“顶”、“沙发”、“mark一下”等。</span>
        </form>     
 {% endblock %}